# Contributor: Francesco Colista <fcolista@alpinelinux.org>
# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
pkgname=yad
pkgver=13.0
pkgrel=1
pkgdesc="Fork of zenity - display graphical dialogs from shell scripts or command line"
url="https://sourceforge.net/projects/yad-dialog/"
arch="all"
license="GPL-3.0-or-later"
depends="hicolor-icon-theme"
makedepends="gtk+3.0-dev webkit2gtk-4.1-dev intltool"
subpackages="$pkgname-dev $pkgname-doc $pkgname-lang"
source="https://github.com/v1cont/yad/releases/download/v$pkgver/yad-$pkgver.tar.xz
	webkit2gtk-4.1.patch
	"

build() {
	./configure \
		--prefix=/usr \
		--enable-icon-browser \
		--enable-html
	make
}

check() {
	echo "src/util.c" >> po/POTFILES.in
	make check
}

package() {
	make DESTDIR="$pkgdir" install
}

sha512sums="
89f438a49722b9aa63ec942a200b4684f88e0e2b489b77b909c03208af644c46d22601a072bcbad1c36707013ee308417d73ce08f2494b8962bce9bf06d58a16  yad-13.0.tar.xz
ad921cc095280d956c40fec721ea32e209c41b0fcae196ea6c404498f5744def561bb268dcd8f016a90ff31bb4e54905d20ce018b199913336c868d156035d9b  webkit2gtk-4.1.patch
"
